<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = [
            {id:1,name:'张三'},
            {id:2,name:'李四'},
            {id:3,name:'王五'}
        ]

        //李四是激活 
        console.log(arr[1])

        arr.splice(0,1)
        console.log(arr[1-1])

    </script>
</body>
</html>